/usr/local/mysql/bin/mysqldump -uroot -p123456 lifepoint_schema > /data/backup/lifepoint_schema.`date +%Y%m%d`.sql
cd /data/backup
tar -zcvf lifepoint_schema.`date +%Y%m%d`.sql.tar.gz lifepoint_schema.`date +%Y%m%d`.sql
rm -rf lifepoint_schema.`date +%Y%m%d`.sql
rm -rf lifepoint_schema.`date +%Y%m%d -d "7 days ago"`.sql.tar.gz
